package com.jml.xxljob.handler;


import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@JobHandler(value = "myJobHandlerTest")  //这个注解就是别人调度的时候就写这个名字
@Service
public class MyJobHandler extends IJobHandler {

	@Value("${xxl.job.executor.port}")
	private String port;


	@Override
	public ReturnT<String> execute(String s) throws Exception {
		System.out.println("myJobHandlerTest:"+port);
		return ReturnT.SUCCESS;
	}
}
